package com.ruoyi.contract.service.impl;

import com.ruoyi.contract.mapper.ContractMapper;
import com.ruoyi.contract.pojo.Contract;
import com.ruoyi.contract.service.ContractService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ContractServiceImpl implements ContractService {

	@Resource
	ContractMapper contractMapper;

	@Override
	public void insertContract(Contract contract) {
		contractMapper.insertContract(contract);
	}

	@Override
	public List<Contract> selectContract(Contract contract) {
		return contractMapper.selectByContract(contract);
	}

	@Override
	public void deleteById(long cid) {
		contractMapper.deleteById(cid);
	}

	@Override
	public void updateById(Contract contract) {
		contractMapper.updateById(contract);
	}
}
